Packetery\Module\Checkout D

Total Complexity 143
Dependencies 19
Dependents 9
Total lines 1,001
Lines of code 541
Logical lines of code 301
Comment lines 194
Methods 31
Properties 9

Methods 31

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
B
39 19 63
updateOrderMeta()
B
40 17 59
calculateFees()
A
43 11 48
updateOrderEntityFromPropsToSave()
A
49 10 32
getTaxClassWithMaxRate()
A
48 9 33
getShippingRates()
A
48 9 31
createSettings()
S
44 5 43
renderWidgetButtonAfterShippingRate()
S
52 6 25
getRateCost()
S
56 6 19
getCODSurcharge()
S
60 6 13
updateShippingAddressProperty()
S
60 5 15
register_hooks()
S
54 3 21
renderWidgetButtonTableRow()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
getWidgetCarriersParam()
S
70 3 6
getCarrierId()
S
64 3 10
getExtendedBranchServiceId()
S
70 2 6
getChosenMethod()
S
67 2 8
updateShippingRates()
S
69 2 6
isPickupPointOrder()
S
72 2 5
getCartWeightKg()
S
67 2 8
getCustomerCountry()
S
69 2 7
isHomeDeliveryOrder()
S
72 2 5
createShippingRate()
S
64 1 10
__construct()
S
67 1 8
getShortenedRateId()
S
78 1 3
isPacketeryOrder()
S
74 1 4
getCartPrice()
S
80 1 3
renderHiddenInputFields()
S
68 1 7
getCartContentsTotalIncludingTax()
S
79 1 3